package com.itmuch.cloud.study.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;
@Configuration
public class RibbonConfig {
	@Bean
	@LoadBalanced //开启别名方式 获取注册信息 本地实现rpc远程调用
	RestTemplate restTemplate(){
	    return new RestTemplate();
	}
}
